package exception;

import lombok.Data;

/**
 * @description:
 * @Author: xiaoma
 * @Date: 2021/8/24 11:43
 */
@Data
public class NoStockException  extends RuntimeException{
    private String id;

    public NoStockException(String id) {
        super("商品ID："+id+"没有足够的库存了");
    }
}
